
<form id="form_edit">
<input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td width="20%" align="right">帐户：</td>
		<td width="80%">{[$result.account_t]} [{[$result.id]}]</td>
	</tr>
	<tr>
		<td align="right">付款金额：</td>
		<td>{[$result.from_currency]} {[$result.from_amount|money]}（大写）{[$result.from_currency_t]} {[$result.from_amount|rmb]}</td>
	</tr>
	<tr>
		<td align="right">入帐金额：</td>
		<td>{[$result.to_currency]} {[$result.to_amount|money]}（大写）{[$result.from_currency_t]} {[$result.to_amount|rmb]}</td>
	</tr>
	<tr>
		<td align="right">汇率：</td>
		<td>{[$result.rate]}</td>
	</tr>
	<tr>
		<td align="right"></td>
		<td><input type="file" name="userfile" id="userfile" size="22"></td>
	</tr>
	<tr>
		<td colspan="2">
		{[include file="_file.tpl"]}
		</td>
	</tr>
</table>
</form>

<script type="text/javascript">
$(function() {

	$("#userfile").uploadify({
		'swf'       : '/js/uploadify/uploadify.swf',
		'uploader' : 'finance.php?do=Convert.ajax_upload2',
				
		'buttonText': '请选择文件',
		
		'width'          : 130,
		'queueSizeLimit' : 10,
		'auto': false,
		'multi'          : true,
		'debug': false,
		'removeTimeout': 0.5,
		
		'fileTypeExts'		 : '*.jpg;*.png;*.pdf;*.doc;*.xls;',
		'fileTypeDesc': 'All Files',
		'fileSizeLimit'		 : '10MB',
		'formData': {
			'id':	'{[$smarty.request.id]}',
			'oper':	'{[$smarty.session.id]}'
		},
		'onUploadSuccess':function(file, data, response) {
			$('#userfile').uploadify('upload');
		}
		
	});
	
});
</script>
